using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region GiftFlower

	/// <summary>
	/// GiftFlower object for NHibernate mapped table 'GiftFlower'.
	/// </summary>
	public class GiftFlower
	{
		#region Member Variables
		
		protected int _id;
		protected string _flowerImg;
		protected string _flowerName;
		protected string _flowerMarket;
		protected decimal _flowerPrice;
		protected bool _isTejia;
		protected string _oop;
		protected string _toUse;
		protected string _staff;
        protected string _flowerNum;
		protected string _orderNum;
		protected DateTime _addDate;
		protected string _keys;
		protected string _cate;
		protected string _contents;
        protected string _bianhao;
        protected string _huacai;
        protected string _baozhuang;
        protected string _huayu;
        protected string _peisong;

		#endregion

		#region Constructors

		public GiftFlower() { }

        public GiftFlower(string flowerImg, string flowerName, string flowerMarket, decimal flowerPrice, bool isTejia, string oop, string toUse, string staff, string flowerNum, string orderNum, DateTime addDate, string keys, string cate, string contents, string bianhao, string huacai, string baozhuang, string huayu, string peisong)
        {
            this._flowerImg = flowerImg;
            this._flowerName = flowerName;
            this._flowerMarket = flowerMarket;
            this._flowerPrice = flowerPrice;
            this._isTejia = isTejia;
            this._oop = oop;
            this._toUse = toUse;
            this._staff = staff;
            this._flowerNum = flowerNum;
            this._orderNum = orderNum;
            this._addDate = addDate;
            this._keys = keys;
            this._cate = cate;
            this._contents = contents;
            this._bianhao = bianhao;
            this._huacai = huacai;
            this._baozhuang = baozhuang;
            this._huayu = huayu;
            this._peisong = peisong;
        }

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual string FlowerImg
		{
			get { return _flowerImg; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for FlowerImg", value, value.ToString());
				_flowerImg = value;
			}
		}

		public  virtual string FlowerName
		{
			get { return _flowerName; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for FlowerName", value, value.ToString());
				_flowerName = value;
			}
		}

		public  virtual string FlowerMarket
		{
			get { return _flowerMarket; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for FlowerMarket", value, value.ToString());
				_flowerMarket = value;
			}
		}

		public  virtual decimal FlowerPrice
		{
			get { return _flowerPrice; }
			set { _flowerPrice = value; }
		}

		public  virtual bool IsTejia
		{
			get { return _isTejia; }
			set { _isTejia = value; }
		}

		public  virtual string Oop
		{
			get { return _oop; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Oop", value, value.ToString());
				_oop = value;
			}
		}

		public  virtual string ToUse
		{
			get { return _toUse; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for ToUse", value, value.ToString());
				_toUse = value;
			}
		}

		public  virtual string Staff
		{
			get { return _staff; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Staff", value, value.ToString());
				_staff = value;
			}
		}

        public virtual string FlowerNum
		{
			get { return _flowerNum; }
			set { _flowerNum = value; }
		}

		public  virtual string OrderNum
		{
			get { return _orderNum; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for OrderNum", value, value.ToString());
				_orderNum = value;
			}
		}

		public  virtual DateTime AddDate
		{
			get { return _addDate; }
			set { _addDate = value; }
		}

		public  virtual string Keys
		{
			get { return _keys; }
			set
			{
				if ( value != null && value.Length > 500)
					throw new ArgumentOutOfRangeException("Invalid value for Keys", value, value.ToString());
				_keys = value;
			}
		}

		public  virtual string Cate
		{
			get { return _cate; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for Cate", value, value.ToString());
				_cate = value;
			}
		}

		public  virtual string Contents
		{
			get { return _contents; }
			set
			{
				if ( value != null && value.Length > 100000)
					throw new ArgumentOutOfRangeException("Invalid value for Contents", value, value.ToString());
				_contents = value;
			}
		}

        public virtual string Bianhao
        {
            get { return _bianhao; }
            set
            {
                if (value != null && value.Length > 2000)
                    throw new ArgumentOutOfRangeException("Invalid value for Bianhao", value, value.ToString());
                _bianhao = value;
            }
        }

        public virtual string Huacai
        {
            get { return _huacai; }
            set
            {
                if (value != null && value.Length > 2000)
                    throw new ArgumentOutOfRangeException("Invalid value for Huacai", value, value.ToString());
                _huacai = value;
            }
        }

        public virtual string Baozhuang
        {
            get { return _baozhuang; }
            set
            {
                if (value != null && value.Length > 2000)
                    throw new ArgumentOutOfRangeException("Invalid value for Baozhuang", value, value.ToString());
                _baozhuang = value;
            }
        }

        public virtual string Huayu
        {
            get { return _huayu; }
            set
            {
                if (value != null && value.Length > 2000)
                    throw new ArgumentOutOfRangeException("Invalid value for Huayu", value, value.ToString());
                _huayu = value;
            }
        }

        public virtual string Peisong
        {
            get { return _peisong; }
            set
            {
                if (value != null && value.Length > 2000)
                    throw new ArgumentOutOfRangeException("Invalid value for Peisong", value, value.ToString());
                _peisong = value;
            }
        }

		

		#endregion
	}
	#endregion
}